﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommonModule;
using System.Data;
using Microsoft.Practices.Unity;
using Web.SystemConfig.Business;
using Web.SystemConfig.Services;
using EPlanet.Web.UI.WebControls;
using DreamBuilder.UI.UserControls;
using DreamBuilder.Core.Message;
namespace Web.Views.SystemConfig
{
    public partial class Auth_UserTree : PageBase
    {
        #region 变量定义
        /// <summary>
        /// Business类
        /// </summary>
        [Dependency]
        public IAuth_User Auth_UserComponent
        {
            get;
            set;
        }
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            this.DBHelpName = DBHelperString.Dictionary;
            Auth_UserComponent.CreateTree(this.tvTables);
            //设置右侧初始页面
            if (this.tvTables.Nodes.Count > 0)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "ShowDefaultTree", "<script>window.parent.document.getElementById('BasicTables').src = 'Auth_User.aspx?Parent_ID=" + this.tvTables.Nodes[0].ID + "';</script>");
            }

        }
    }
}